﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CapaNegocio;
using CapaEntidades;
namespace SisHotel
{
    public partial class historialReservas : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                CargarHistorial();
            }
        }

        #region "Cargar Historial Reservas"
        private void CargarHistorial()
        {
            entCliente c = (entCliente)Session["cliente"];
            gvHistorialReservas.DataSource = negReserva.Instancia.ListarHistorialReservas(c.IdPersona);
            gvHistorialReservas.DataBind();
        }
        #endregion
    }
}